package cn.haiway.drools.pojo;


import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Haiway  on 2019/5/10
 */
@Document(collection = "project")
@Data
public class Project implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    @Field("project_name")
    private String projectName;

    @Field("group_id")
    private String groupId;

    @Field("artifact_id")
    private String artifactId;

    @Field("version")
    private String version;

    @Field("create_time")
    private Date createTime;

    @Field("update_time")
    private Date updateTime;

    @Field("create_by")
    private String createBy;
}
